(Really) Tight bounds for dispatching binary methods

نویسنده

  • Pawel Gawrychowski
چکیده

We consider binary dispatching problem originating from object oriented programming. We want to preprocess a hierarchy of classes and collection of methods so that given a function call in the run-time we are able to retrieve the most specialized implementation which can be invoked with the actual types of the arguments. This problem has been thoroughly studied for the case of mono dispatching [7,4], where the methods take just one argument, resulting in (expected) O(log logm) query time after just linear preprocessing. For the binary dispatching, where the methods take exactly two arguments, logarithmic query time is possible [5], even if the structure is allowed to take linear space [1]. Unfortunately, constructing such structure requires as much as (expected) Θ(m(log logm)) time [1,9]. Using a different idea we are able to construct in (deterministic) linear time and space a structure allowing dispatching binary methods in the same logarithmic time. Then we show how to improve the query time to just O( logm log logm ), which is easily seen to be optimal as a consequence of some already known lower bounds if we want to keep the size of the resulting structure close to linear. Key-words: method dispatching, persistent data structures, rectangle geometry

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

More inequalities for Laplacian indices by way of majorization

The n-tuple of Laplacian characteristic values of a graph is majorized by the conjugate sequence of its degrees. Using that result we find a collection of general inequalities for a number of Laplacian indices expressed in terms of the conjugate degrees, and then with a maximality argument, we find tight general bounds expressed in terms of the size of the vertex set n and the average degree dG...

متن کامل

Sharp Upper bounds for Multiplicative Version of Degree Distance and Multiplicative Version of Gutman Index of Some Products of Graphs

In $1994,$ degree distance  of a graph was introduced by Dobrynin, Kochetova and Gutman. And Gutman proposed the Gutman index of a graph in $1994.$ In this paper, we introduce the concepts of  multiplicative version of degree distance and the multiplicative version of Gutman index of a graph. We find the sharp upper bound for the  multiplicative version of degree distance and multiplicative ver...

متن کامل

Doubly Nonnegative Relaxations for Quadratic and Polynomial Optimization Problems with Binary and Box Constraints

We propose doubly nonnegative (DNN) relaxations for polynomial optimization problems (POPs) with binary and box constraints to find tight lower bounds for their optimal values using a bisection and projection (BP) method. This work is an extension of the work by Kim, Kojima and Toh in 2016 from quadratic optimization problems (QOPs) to POPs. We show how the dense and sparse DNN relaxations are ...

متن کامل

Most Complex Non-returning Regular Languages

A regular language L is non-returning if in the minimal deterministic finite automaton accepting it there are no transitions into the initial state. Eom, Han and Jirásková derived upper bounds on the state complexity of boolean operations and Kleene star, and proved that these bounds are tight using two different binary witnesses. They derived upper bounds for concatenation and reversal using t...

متن کامل

Information in the first price auction∗

We study how the structure of information can affect welfare outcomes in the first price auction. For a fixed distribution of buyers’ valuations, we consider all of the Bayesian equilibria in weakly undominated strategies that could arise under different specifications of the buyers’ higher-order beliefs, as long as those beliefs are consistent with a common prior and the given prior distributi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1202.5670  شماره 

صفحات  -

تاریخ انتشار 2012